import { IOnlineClassService } from './typing/service/index'

class Context<T> {
  private instance: T | null = null

  get(): T {
    return this.instance as T
  }

  set(param: T): void {
    this.instance = param
  }
}

export const serviceContext = new Context<IOnlineClassService>()
